package com.itheima.charstream;

import java.io.FileWriter;
import java.io.IOException;

public class Demo03 {

    public static void main(String[] args) throws IOException {
        //创建对象
        FileWriter writer = new FileWriter("day13\\a.txt");

        //调用方法
        writer.write('吴');

        char[] chars={'魑','魅','魍','魉'};
        writer.write(chars);
        writer.write(chars,2,2);
        writer.write("吴签签");
        writer.write("吴签签",0,3);
        //释放资源
        writer.close();

    }
}
